from generator.gen import Gen
from dto.param import Param


class GenUnicode(Gen):
    def __init__(self, param: Param = None):
        Gen.__init__(self, param)
        pass

    def check(self, c, charset):
        """
        About Unicode Chinese:
            primary region:
              (1) basic        : 0x4E00 ~ 0x9FA5, 20902
              (2) supplemental : 0x9FA6 ~ 0x9FCB, 38
            extend region:

        Char encode by Unicode don't need to check.
        :param charset: always Unicode
        :param c:
        :return:
        """
        return c
